<?php
$this->title="营养包补录";
?>
<?php if (Yii::$app->session->hasFlash('error')): ?>
<div class="error-flash"><?= Yii::$app->session->getFlash('error')?></div>
<?php endif;?>
<?php if (Yii::$app->session->hasFlash('success')): ?>
<div class="success-flash"><?= Yii::$app->session->getFlash('success')?></div>
<?php endif;?>
<div style="max-width: 500px">
	<form class="form-horizontal" action="" method="post">
		<div class="form-group">
	        <label class="control-label col-xs-3">营养包编号</label>
	        <div class="col-xs-9">
	        	<textarea name="id" class="form-control"><?= $post['id']?></textarea>
	        	<div class="help-block">多个编号用换行录入</div>
	        </div>
	    </div>
	    <div class="form-group">
	        <label class="control-label col-xs-3">规格</label>
	        <div class="col-xs-9">
	            <select name="level" class="form-control">
	            	<option value="1" <?= $post['level'] == 1 ? 'selected' : ''?>>盒</option>
	            	<option value="2" <?= $post['level'] == 2 ? 'selected' : ''?>>箱</option>
	            	<option value="3" <?= $post['level'] == 3 ? 'selected' : ''?>>托盘</option>
	            </select>
	        </div>
	    </div>
	    <div class="form-group">
	        <label class="control-label col-xs-3">托盘号</label>
	        <div class="col-xs-9">
	            <input type="text" name="root_no" class="form-control" value="<?= $post['root_no']?>">
	        </div>
	    </div>
	    <div class="form-group">
	        <label class="control-label col-xs-3">箱号</label>
	        <div class="col-xs-9">
	            <input type="text" name="box_no" class="form-control" value="<?= $post['box_no']?>">
	        </div>
	    </div>
	    <div class="form-group">
	        <label class="control-label col-xs-3">批次号</label>
	        <div class="col-xs-9">
	            <input type="text" name="batch" class="form-control" value="<?= $post['batch']?>">
	        </div>
	    </div>
	    <div class="form-group">
	        <label class="control-label col-xs-3">生产日期</label>
	        <div class="col-xs-9">
	            <input type="text" name="pack_date" class="form-control" value="<?= $post['pack_date']?>">
	        </div>
	    </div>
	    <div class="form-group">
	        <label class="control-label col-xs-3">FactoryId</label>
	        <div class="col-xs-9">
	            <input type="text" name="factory_id" class="form-control" value="<?= $post['factory_id']?>">
	        </div>
	    </div>
	    <div class="form-group">
	        <label class="control-label col-xs-3">MaterialId</label>
	        <div class="col-xs-9">
	            <input type="text" name="material_id" class="form-control" value="<?= $post['material_id']?>">
	        </div>
	    </div>
	    <div class="form-group">
	        <label class="control-label col-xs-3">ShouldOrgId</label>
	        <div class="col-xs-9">
	            <input type="text" name="should_org_id" class="form-control" value="<?= $post['should_org_id']?>">
	        </div>
	    </div>
	    <div class="form-group">
		    <div class="col-xs-offset-3" style="padding-left: 15px">
		      	<button type="submit" class="btn btn-info">提交</button>
		    </div>
	  	</div>
	</form>
</div>

